package com.laikan.reader.core.service;

import android.content.Context;

/**
 * Shenhualugang -- com.shenhualugang.network.download2
 * User: lizheng<br>
 * Date: 13-7-20<br>
 * Time: 下午1:16<br>
 * Email: kenny.li@itotemdeveloper.com<br>
 * 文件下载类
 */
public abstract class FileDownloader implements DownloadInterface {

    protected Context mContext;
    protected DownloadHandler downloadHandler;

    public FileDownloader(Context ctx) {
        this.mContext = ctx;
        downloadHandler = new DownloadHandler(ctx, this);
    }

    @Override
    public abstract void onStart(String url);

    @Override
    public abstract void onProgress(String url, int p);

    @Override
    public abstract void onFinish(String url);

    @Override
    public abstract void onFailure(String url);
}
